using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using GZTW.AyaNova.BLL; using Infragistics.Win; using log4net; namespace AyaNova { /// /// Summary description for WikiFileUpdatePrompt. /// public class WikiFileUpdatePrompt : System.Windows.Forms.Form { // Create a logger for use in this class //case 1039 private static readonly log4net.ILog log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); private System.Windows.Forms.Panel WikiFileUpdatePrompt_Fill_Panel; private System.Windows.Forms.Button btnOK; private System.Windows.Forms.Button btnCancel; private Label lblFile; //private System.ComponentModel.IContainer components; public WikiFileUpdatePrompt(string FileName) { mFileName = FileName; // // Required for Windows Form Designer support // InitializeComponent(); // // // } private string mFileName=""; /// /// Clean up any resources being used. /// protected override void Dispose( bool disposing ) { if( disposing ) { // if(components != null) // { // components.Dispose(); // } } base.Dispose( disposing ); } #region Windows Form Designer generated code /// /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// private void InitializeComponent() { this.WikiFileUpdatePrompt_Fill_Panel = new System.Windows.Forms.Panel(); this.lblFile = new System.Windows.Forms.Label(); this.btnCancel = new System.Windows.Forms.Button(); this.btnOK = new System.Windows.Forms.Button(); this.WikiFileUpdatePrompt_Fill_Panel.SuspendLayout(); this.SuspendLayout(); // // WikiFileUpdatePrompt_Fill_Panel // this.WikiFileUpdatePrompt_Fill_Panel.Controls.Add(this.lblFile); this.WikiFileUpdatePrompt_Fill_Panel.Controls.Add(this.btnCancel); this.WikiFileUpdatePrompt_Fill_Panel.Controls.Add(this.btnOK); this.WikiFileUpdatePrompt_Fill_Panel.Cursor = System.Windows.Forms.Cursors.Default; this.WikiFileUpdatePrompt_Fill_Panel.Dock = System.Windows.Forms.DockStyle.Fill; this.WikiFileUpdatePrompt_Fill_Panel.Location = new System.Drawing.Point(0, 0); this.WikiFileUpdatePrompt_Fill_Panel.Name = "WikiFileUpdatePrompt_Fill_Panel"; this.WikiFileUpdatePrompt_Fill_Panel.Size = new System.Drawing.Size(392, 197); this.WikiFileUpdatePrompt_Fill_Panel.TabIndex = 0; // // lblFile // this.lblFile.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.lblFile.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblFile.Location = new System.Drawing.Point(10, 10); this.lblFile.Name = "lblFile"; this.lblFile.Size = new System.Drawing.Size(375, 113); this.lblFile.TabIndex = 30; this.lblFile.Text = "label1"; this.lblFile.TextAlign = System.Drawing.ContentAlignment.TopCenter; // // btnCancel // this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.btnCancel.Image = global::AyaNova.Resource1.Cancel24; this.btnCancel.Location = new System.Drawing.Point(10, 140); this.btnCancel.Name = "btnCancel"; this.btnCancel.Size = new System.Drawing.Size(90, 50); this.btnCancel.TabIndex = 28; this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); // // btnOK // this.btnOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnOK.DialogResult = System.Windows.Forms.DialogResult.OK; this.btnOK.Image = global::AyaNova.Resource1.Upload24; this.btnOK.Location = new System.Drawing.Point(295, 140); this.btnOK.Name = "btnOK"; this.btnOK.Size = new System.Drawing.Size(90, 50); this.btnOK.TabIndex = 27; this.btnOK.Click += new System.EventHandler(this.btnOK_Click); // // WikiFileUpdatePrompt // this.AcceptButton = this.btnOK; this.AutoScaleBaseSize = new System.Drawing.Size(6, 15); this.CancelButton = this.btnCancel; this.ClientSize = new System.Drawing.Size(392, 197); this.Controls.Add(this.WikiFileUpdatePrompt_Fill_Panel); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.MaximizeBox = false; this.MaximumSize = new System.Drawing.Size(720, 346); this.MinimizeBox = false; this.MinimumSize = new System.Drawing.Size(396, 92); this.Name = "WikiFileUpdatePrompt"; this.ShowInTaskbar = false; this.Closing += new System.ComponentModel.CancelEventHandler(this.WikiFileUpdatePrompt_Closing); this.Load += new System.EventHandler(this.WikiFileUpdatePrompt_Load); this.WikiFileUpdatePrompt_Fill_Panel.ResumeLayout(false); this.ResumeLayout(false); } #endregion // __ _ _ ___ ____ __ __ __ __ __ ___ ___ // / _)( )( )/ __)(_ _)/ \( \/ ) / _)/ \( \( _) // ( (_ )()( \__ \ )( ( () )) ( ( (_( () )) ) )) _) // \__) \__/ (___/ (__) \__/(_/\/\_) \__)\__/(___/(___) // #region Load / close events private void WikiFileUpdatePrompt_Load(object sender, System.EventArgs e) { //case 1039 //log.Debug("WikiFileUpdatePrompt_Load"); this.Icon = Resource1.AyaFiles16icon; Util.Localize(this); this.lblFile.Text = mFileName; } private void WikiFileUpdatePrompt_Closing(object sender, System.ComponentModel.CancelEventArgs e) { } #endregion private void btnCancel_Click(object sender, System.EventArgs e) { this.DialogResult=DialogResult.Cancel; this.Close(); } //SAVE FILE BUTTON private void btnOK_Click(object sender, System.EventArgs e) { this.DialogResult=DialogResult.OK; this.Close(); } //-------------------------------------------------------- } }