Esempio n. 1
0
        public void SaveData()
        {
            LoadBindingModel model = new LoadBindingModel();

            ConvertDataFromControlToModel(model);
            _loadmanager.SaveIntoFile(model);
        }
Esempio n. 2
0
        private void lưuToolStripMenuItem_Click(object sender, EventArgs e)
        {
            LoadBindingModel model = new LoadBindingModel();

            ConvertDataFromControlToModel(model);
            _loadmanager.SaveIntoFile(model);
        }
Esempio n. 3
0
        internal void LoadData()
        {
            LoadBindingModel model = _loadmanager.OpenFile();

            if (model != null)
            {
                ConvertDataFromModelToControls(model);
            }
        }
Esempio n. 4
0
        private void mởToolStripMenuItem_Click(object sender, EventArgs e)
        {
            LoadBindingModel model = _loadmanager.OpenFile();

            if (model != null)
            {
                ConvertDataFromModelToControls(model);
            }
        }
Esempio n. 5
0
 public void ConvertDataFromModelToControls(LoadBindingModel model)
 {
     txbAValue.Text = model.CCAValue;
     txbBValue.Text = model.CCBValue;
 }
Esempio n. 6
0
 public void ConvertDataFromControlToModel(LoadBindingModel model)
 {
     model.CCAValue = txbAValue.Text;
     model.CCBValue = txbBValue.Text;
 }
Esempio n. 7
0
 public void SaveIntoFile(LoadBindingModel model)
 {
     Z119.ATK.Common.ProjectManager.SaveObject(model, Const.FD_Tai);
 }
Esempio n. 8
0
 public void SaveIntoFile(LoadBindingModel model)
 {
     Z119.ATK.Common.CommonFile.SaveIntoFile(model, Const.FD_Tai);
 }