Пример #1
0
        public Dialogs(jzip.Container imageContainer)
        {
            SetPhraseAttributesCount(4);
            InitializeComponent();
#if !PocketPC
            this.DoubleBuffered = true;
            this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            this.SetStyle(ControlStyles.Opaque, true);
            this.SetStyle(ControlStyles.ResizeRedraw, true);
#endif
            this.imageContainer = imageContainer;
            dlginstance         = new DBacklog(new Dialog(imageContainer));
        }
Пример #2
0
        public void Clear()
        {
            FocusedEditPhrase   = -1;
            FocusedPhrase       = -1;
            FocusedTimeline     = -1;
            FocusedEditTimeline = -1;
            dlg.Clear();
            dlg.ClearHistory();

            if (imageContainer != null)
            {
                imageContainer.Dispose();
                File.Delete(imageContainer.FileName);
            }
            imageContainer = new jzip.Container();

            dlg = new DBacklog(new Dialog(imageContainer));

            SelectedChanged.Invoke(null);
        }