Beispiel #1
0
        static void Main(string[] args)
        {
            Cfg m_Cfg = Cfg.ReadConfig();

            if (m_Cfg == null)
            {
                return;
            }
            // Thread.Sleep(2000);
            List <object[]> res = DataBase.SelectQuery("select * from update_operator order by id desc;", m_Cfg.DbConnectionString);

            if (res.Count > 0)
            {
                UFiles uf = (UFiles)DataBase.ArrayToObject((byte[])res[0][1]);

                for (int i = 0; i < uf.FilesList.Count; i++)
                {
                    Console.WriteLine("Нажмите любую кнопку для продолжения....");
                    Console.ReadLine();
                    uf.FilesList[i].Update(FileToUpdate.StartupPath + @"\" + uf.FilesList[i].FileName);
                }

                Process.Start("TaskControlOperator.exe");
            }
        }
Beispiel #2
0
 public MainOperatorForm()
 {
     InitializeComponent();
     m_Cfg = Cfg.ReadConfig();
     // UserInfo usr = new UserInfo(new DepInfo("asdasd"), "asdasdas", "asdasdas");
     // propertyGrid1.SelectedObject = usr;
 }
Beispiel #3
0
 public MainUpdateForm()
 {
     InitializeComponent();
     m_Cfg = Cfg.ReadConfig();
     if (m_Cfg == null)
     {
         this.Close();
     }
     m_Files = new UFiles();
 }
Beispiel #4
0
 public MainForm()
 {
     InitializeComponent();
     this.Text += " Версия: " + m_Version.ToString();
     m_Cfg      = Cfg.ReadConfig();
     if (m_Cfg == null)
     {
         this.Close();
     }
 }
Beispiel #5
0
 public MainForm()
 {
     InitializeComponent();
     //toolTip1.SetToolTip(label1, "asdfsdfsdf");
     m_Cfg = Cfg.ReadConfig();
     if (m_Cfg == null)
     {
         this.Close();
     }
 }