Beispiel #1
0
        public FindForm(MainForm mainForm, FilmotecClass filmotecClass, SettingClass settingClass)
        {
            InitializeComponent();

            this.mMainForm      = mainForm;
            this.mFilmotecClass = filmotecClass;
            this.mSettingClass  = settingClass;
        }
Beispiel #2
0
        public AddEditFilmForm(MainForm mainForm, AddEditState currentState, FilmotecClass filmotecClass, SettingClass settingClass, FilmInfo editFilmInfo)
        {
            InitializeComponent();

            this.mMainForm      = mainForm;
            this.mCurrentState  = currentState;
            this.mFilmotecClass = filmotecClass;
            this.mSettingClass  = settingClass;
            this.mOldFilmInfo   = editFilmInfo;
        }
Beispiel #3
0
        public AddEditDiskForm(MainForm mainForm, AddEditState currentState, FilmotecClass filmotecClass, SettingClass settingClass, DiskInfo editDiskInfo, int selectedIndex)
        {
            InitializeComponent();

            m_MainForm      = mainForm;
            m_CurrentState  = currentState;
            m_FilmotecClass = filmotecClass;
            m_SettingClass  = settingClass;
            m_OldDiskInfo   = editDiskInfo;
            m_SelectedIndex = selectedIndex;
        }
Beispiel #4
0
        /// <summary>
        /// Инициализация и установка настроек при начале работы программы
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void MainForm_Load(object sender, EventArgs e)
        {
            this.mLockChangeInfo = false;
            this.mFilmotecClass  = new FilmotecClass(Path.Combine(Application.StartupPath, "Data\\Filmotec.flm"));
            this.mSettingClass   = new SettingClass();
            Location             = this.mSettingClass.MainFormLocation;
            Size = this.mSettingClass.MainFormSize;

            InputLanguage.CurrentInputLanguage = this.mSettingClass.CurrentInputLanguage;

            this.mLockChangeSettings = false;
            this.mDiskInfos          = this.mFilmotecClass.DiskInfo;
            this.mFilmInfos          = this.mFilmotecClass.GetFilmInfo(0, string.Empty, string.Empty);
            DisplayInfos();

            SetFont();
        }