예제 #1
0
 private void Initialization()
 {
     //Do the initial work
     try
     {
         DropBoxUser = new DBox_User();
         this.BeginInvoke(new MethodInvoker(this.Close));
     }
     catch (System.Exception ex)
     {
         SecuruStikMessageQueue.SendMessage_Splash_Hiden();
         MessageBox.Show(
             new Form {
             TopMost = true, StartPosition = FormStartPosition.CenterScreen
         },
             ex.Message, "Sorry, our program meets some mistakes...",
             System.Windows.Forms.MessageBoxButtons.OK,
             System.Windows.Forms.MessageBoxIcon.Error);
         Process.GetCurrentProcess().Kill();
     }
 }
예제 #2
0
        public SecuruStik_MainForm(DBox_User dropBoxUser)
        {
            try
            {
                InitializeComponent();

                this.CreateDelegateTable();

                this.DropBoxUser = dropBoxUser;

                this.SynchronizeAsync();

                if (!VelostiScsi.IsPlugin_PubDrive)
                {
                    this.Notify_Eject();
                }
            }
            catch (System.Exception ex)
            {
                MessageBoxEx.Show(ex.Message);
                this.Close();
            }
        }